import requests
def face_compare(api_key,api_secret,face_token1,face_token2):
    base_url = 'https://api-cn.faceplusplus.com/facepp/v3/compare'
    payload = {
            'api_key': api_key,
            'api_secret': api_secret,
            'face_token1': face_token1,
            'face_token2': face_token2
            }
    

    r = requests.post(base_url, params = payload)
    return r.json()